
import Config from '@/config'

class App {

  static getFullUrl (url) {
    if (url.startsWith('http://') || url.startsWith('https://')) {
      return url
    } else if (url.startsWith('/')) {
      return Config.BASE_URL + url
    } else {
      return Config.BASE_URL + '/' + url
    }
  }

}

export default App
